/**
 * @file: SimpleWeighingRecord
 * @author: michael
 * @date: 2019/4/13 16:45
 * @copyright: 南京凯盛
 */
package cn.com.kisen.kdc.domain.weighing;

import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

/**
 *
 *
 * @author michael
 * @version 1.0 Created on 2019/4/13 16:45
 */
public class SimpleWeighingRecord {
    private String transctionType;
    private String transctionNo;
    private String cardNo;
    private String truckNo;
    private String materialName;
    private long grossWtDatetime;
    private long tareWtDatetime;
    private BigDecimal grossWeight;
    private BigDecimal tareWeight;
    private BigDecimal netWeight;
    private BigDecimal finallyWeight;
    private String beginTime;//进厂时间
    private String endTime;

    public SimpleWeighingRecord() {
    }

    public SimpleWeighingRecord(String truckNo, String materialName, BigDecimal grossWeight,
                                BigDecimal tareWeight, BigDecimal finallyWeight,
                                String beginTime, String endTime) {
        this.truckNo = truckNo;
        this.materialName = materialName;
        this.grossWeight = grossWeight;
        this.tareWeight = tareWeight;
        this.finallyWeight = finallyWeight;
        this.beginTime = beginTime;
        this.endTime = endTime;
    }


    public SimpleWeighingRecord(WeighingRecord source) {
        BeanUtils.copyProperties(source, this, "beginTime", "endTime");

    }

    public String getTransctionType() {
        return transctionType;
    }

    public void setTransctionType(String transctionType) {
        this.transctionType = transctionType;
    }

    public String getTransctionNo() {
        return transctionNo;
    }

    public void setTransctionNo(String transctionNo) {
        this.transctionNo = transctionNo;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getTruckNo() {
        return truckNo;
    }

    public void setTruckNo(String truckNo) {
        this.truckNo = truckNo;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public long getGrossWtDatetime() {
        return grossWtDatetime;
    }

    public void setGrossWtDatetime(long grossWtDatetime) {
        this.grossWtDatetime = grossWtDatetime;
    }

    public long getTareWtDatetime() {
        return tareWtDatetime;
    }

    public void setTareWtDatetime(long tareWtDatetime) {
        this.tareWtDatetime = tareWtDatetime;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getFinallyWeight() {
        return finallyWeight;
    }

    public void setFinallyWeight(BigDecimal finallyWeight) {
        this.finallyWeight = finallyWeight;
    }

    public BigDecimal getTareWeight() {
        return tareWeight;
    }

    public void setTareWeight(BigDecimal tareWeight) {
        this.tareWeight = tareWeight;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
